package com.gxa.controller.statistics.staff;


import com.gxa.common.R.ResponseData;
import com.gxa.service.statistics.StatisticService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;

//员工黑白名单统计类
@RestController
@RequestMapping("/staff")
@Api(value = "员工黑白名单统计test",tags = "陈卓/员工黑白名单统计API")
public class StaffBlackWhiteController {
    @Autowired
    private StatisticService statisticService;

    @RequestMapping(value = "/blackWhite",method = RequestMethod.GET)
    @ApiOperation(value = "员工黑白名单统计接口",notes = "返回成功查询员工黑白名单统计数据",httpMethod = "get", response = ResponseData.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    public ResponseData blackWhiteData(){
        ResponseData r = statisticService.blackWhiteData();
        return r;
    }
}
